import http from "@/utils/http";
const prefixUrl = {
  query: "/analysis/merchant/list",
  create: "/analysis/merchant/add",
  update: "/analysis/merchant/edit",
  updatePsd: "/analysis/merchant/editPassword",
  updateStatus: "/analysis/merchant/disable",
};
export default {
  role: {
    query: "POST:" + prefixUrl.query,
    create: "POST:" + prefixUrl.create,
    update: "POST:" + prefixUrl.update,
    updatePsd: "POST:" + prefixUrl.updatePsd,
    updateStatus: "POST:" + prefixUrl.updateStatus,
  },
  query(params = {}) {
    return http.post(prefixUrl.query, params);
  },
  create(params = {}) {
    return http.post(prefixUrl.create, params);
  },
  update(params = {}) {
    return http.post(prefixUrl.update, params);
  },
  updatePsd(params = {}) {
    return http.post(prefixUrl.updatePsd, params);
  },
  updateStatus(params = {}) {
    return http.post(prefixUrl.updateStatus, params);
  },
};
